package com.maven;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.logging.Log;

/**
 * 注释的方式实现 maven plugin 开发，mojo 和 maven 插件的 goal 是一一对应的
 *
 * @author L
 * @goal common
 */
public class CommonMojo extends AbstractMojo {

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        final Log log = getLog();
        log.info("当前正在允许的代码为 common maven plugin");
    }
}
